package com.sg.business.model.sap;

import com.mobnut.admin.schedule.model.ScheduleJob;
import com.mobnut.admin.schedule.registry.IScheduleJobRunnable;
import com.sg.business.model.etl.ETL;
import com.sg.business.model.etl.ICostCollectorFactory;
import com.sg.business.model.etl.ISaleDataCollector;

public class SAPETLJob implements IScheduleJobRunnable {

	@Override
	public boolean run() throws Exception {
		ETL etl = ETL.getInstance();
		ICostCollectorFactory costCollectorFactory = new SAPCostCollectorFactory();
		ISaleDataCollector sdc = new SAPSaleDataCollector();
		return etl.doETL(costCollectorFactory, costCollectorFactory, sdc);
	}

	@Override
	public void init(ScheduleJob jobPo) {

	}

}
